package com.epower.bo.epower.commons;

import java.util.ArrayList;
import java.util.List;

/**
 * @author bolin.hbc
 * 
 *         静态常量
 * 
 */
@SuppressWarnings("serial")
public class Constants {

	public static final int STATUS_OK = 1;
	public static final int STATUS_NOT_OK = 0;

	public static final int USER_COMMON = 1;
	public static final int USER_MANAGER = 2;

	public static final int DEFAULT_LIB_LEVEL = 1;

	public static final String USER_MD5_KEY = "/.,\\[]~@JJiu09182Za`";

	public static final String IS_REMEMBER_LOGIN_KEY = "rememberLogin";
	public static final String IS_REMEMBER_LOGIN_VALUE = "true";
	public static final String IS_REMEMBER_NOT_LOGIN_VALUE = "true";
	public static final String USER_NAME = "USER_NAME";
	public static final String USER = "USER";

	public static final int ONE_YEAR = 3 * 30 * 24 * 60 * 60;

	/** DICT.CN */
	public final static String DICT_CN_SEARCH_WORD = "http://dict.cn/ws.php?q=";
	public final static String DICT_CN_SEARCH_DEF = "</def>";
	public final static String DICT_CN_SEARCH_DEF_ = "<def>";

	/** USER.WORD.LEVEL */

	public final static int USER_WORD_LEVEL_STRANGE = 1;
	public final static int USER_WORD_LEVEL_FUZZY = 2;
	public final static int USER_WORD_LEVEL_FAMILIAR = 3;

	/** LOGIN.URL */
	public static List<String> LOGIN_URLS = new ArrayList<String>() {
		{
			add("/center/wordList.do");
			add("/center/studyList.do");
			add("/center/collections.action");
			add("/center/collections.do");
			add("/center/wordList.action");
			add("/center/studyList.action");
			add("/jsonepowerword/getEpowerWord.action");
			add("/epoweruserword/getAllWordCountByBookid.action");
			add("/epoweruserword/resetUserWordLevel.action");

		}
	};

}
